#include "config.h"

#include "ms2sim.h"

extern ecm_uint32 get_media_iablks(ecm_uint32 mid);
extern bcache_t *find_bcache(ecm_uint32 mid, ecm_uint32 bid);
extern void vprintlog(const char *fmt, va_list ap);

/**
 * @brief return inter arrival in terms of bid
 */
ecm_uint32
bc_get_inter_arrival_blks(ecm_uint32 mid)
{
	return get_media_iablks(mid);
}

/**
 * @brief return inter arrival in terms of bid
 */
bcache_t *
bc_find_bcache(ecm_uint32 mid, ecm_uint32 bid)
{
	return find_bcache(mid, bid);
}

void
bc_printlog(const char *fmt, ...)
{
        va_list ap;

        va_start(ap, fmt);
	vprintlog(fmt, ap);
        va_end(ap);
}
